package cn.moningxi.bean;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 用户余额明细表
 * c_balance_log
 *
 * @author
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class CBalanceLog implements Serializable {
    private Integer balanceId;

    /**
     * 用户ID
     */
    private String customerId;

    /**
     * 记录来源：1下订单，2退货单
     */
    private String source;

    /**
     * 相关单据号
     */
    private String sourceSn;

    /**
     * 变动余额
     */
    private Integer amount;

    /**
     * 被冻结的金额
     */
    private Integer frozenMoney;

    /**
     * 记录生成时间
     */
    private LocalDateTime createTime;

    /**
     * 消费记录说明
     */
    private String changeDesc;

    private static final long serialVersionUID = 1L;
}